home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NewsBase / Source / common.subproj / IKeyedObject.m < prev    next >
Text File  |  1993-01-12  |  333b  |  25 lines

  1. #import "IKeyedObject.h"
  2. #import <objc/hashtable.h>
  3.  
  4. @implementation IKeyedObject
  5.  
  6. - initWithKey:(const char *)aKey
  7. {
  8.     [super init];
  9.     key = NXCopyStringBufferFromZone(aKey, [self zone]);
  10.     return(self);
  11. }
  12.  
  13. - (const char *)key
  14. {
  15.     return(key);
  16. }
  17.  
  18. - free
  19. {
  20.     NXZoneFree([self zone], key);
  21.     return([super free]);
  22. }
  23.  
  24. @end
  25.